function show(dis){
	document.getElementById(dis).style.display="block";
}

function showImage(t,filename){
	$("#showImg").attr("src",filename);
	$("#showDetail").dialog({
		height:"auto",
		width: "auto",
		position: {my: "center", at: "center",  collision:"fit"},
		modal:false,//是否模式对话框
		draggable:true,//是否允许拖拽
		resizable:true,//是否允许拖动
		title:t,//对话框标题
		show:"slide",
		hide:"explode"
	});
}

function deleteFile(filename,path){
	if(window.confirm('亲，您确定要删除吗？删除后无法恢复哟')){
		location.href="index.php?act=deleteFile&dirname="+filename+"&filename="+filename+"&path="+path;
	}
}

function goBack(back){
	location.href = "index.php?path="+back;
}

function deleteFolder(dirname,path){
	if(window.confirm('亲，您确定要删除吗？删除后无法恢复哟')){
		location.href="index.php?act=deleteFolder&dirname="+dirname+"&filename="+dirname+"&path="+path;
	}
}